package com.wxzz.elearing.course.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.wxzz.elearning.common.bean.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * <p>
 * 课程分类
 * </p>
 *
 * @author
 * @since 2021-03-10
 */
@Data
@ApiModel(value = "CurriculumCategory对象", description = "课程分类")
public class CurriculumCategory extends BaseEntity {

    @ApiModelProperty(value = "分类名")
    private String categoryName;

    @ApiModelProperty(value = "父级id 如果为0则是顶级")
    private Long pid;

    @ApiModelProperty(value = "未选中图标url")
    private String unselectedIcon;

    @ApiModelProperty(value = "选中图标url")
    private String selectedIcon;

    @ApiModelProperty(value = "企业id 如果为0则为平台分类")
    private Long enterpriseId;

    @TableField(exist = false)
    @ApiModelProperty(value = "课程数量")
    private Long curriculumNum = 0L;

    @TableField(exist = false)
    @ApiModelProperty(value = "二级分类")
    private List<CurriculumCategory> children;
}
